package com.szrt.java.day20161230.demo04;


/**
 * 父类
 * @author zsrt
 *
 */
public class Person04 {
	
	public  String jiapu="szrt";
	
	private String name;
	
	private int age=23;
	
	public Person04(){
		System.out.println("调用了父类Person04的构造方法...");
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}
	
	public int add(int x ,int y){
		return x+y;
	}

	@Override
	public String toString() {
		return "Person04 [name=" + name + ", age=" + age + "]";
	}

}
